from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate

# 创建SQLAlchemy实例
db = SQLAlchemy()

# 创建数据库迁移工具实例
migrate = Migrate()

# 导入所有模型
from .academic import Major, Course, Teacher, MajorPlan, Teaching, CourseRating

# 导出所有模型
__all__ = [
    'db',
    'migrate',
    'Major',
    'Course',
    'Teacher',
    'MajorPlan',
    'Teaching',
    'CourseRating'
] 